package ystp.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import ystp.model.Fujiankjjiben;
import ystp.model.FujiankjjibenExample;
import ystp.model.FujiankjjibenKey;

public interface FujiankjjibenMapper {
    List<Map<String, Object>> findPinguiAll(@Param("xiangmuid") String ppxiangmuId, @Param("drugname") String ppDrugname,
                                            @Param("startindex") int ppStartIndex,
                                            @Param("pagesize") int ppPageSize);

    List<Map<String, Object>> findShengchanqiyeByPinguiResult(@Param("xiangmuid") String ppxiangmuId,
                                                              @Param("xuhao")String ppPinguiOne,@Param("userid")String ppuserId);

    Object getPinguiCount(@Param("xiangmuid") String ppxiangmuId,
                          @Param("startindex") int ppStartIndex,
                          @Param("pagesize") int ppPageSize);

    Object countPass(@Param("xiangmuid")String ppXiangmuId,@Param("userid")String ppUserId);
    int countByExample(FujiankjjibenExample example);

    int deleteByExample(FujiankjjibenExample example);

    int deleteByPrimaryKey(FujiankjjibenKey key);

    int insert(Fujiankjjiben record);

    int insertSelective(Fujiankjjiben record);

    List<Fujiankjjiben> selectByExample(FujiankjjibenExample example);

    Fujiankjjiben selectByPrimaryKey(FujiankjjibenKey key);

    int updateByExampleSelective(@Param("record") Fujiankjjiben record, @Param("example") FujiankjjibenExample example);

    int updateByExample(@Param("record") Fujiankjjiben record, @Param("example") FujiankjjibenExample example);

    int updateByPrimaryKeySelective(Fujiankjjiben record);

    int updateByPrimaryKey(Fujiankjjiben record);

    int insertBatch(List<Fujiankjjiben> list);
    List<Map<String, Object>> selectPingui(@Param("xiangmuid") String xiangmuid, @Param("startindex") int ppStartIndex,
                                           @Param("pagesize") int ppPageSize);

    Integer countPingui(@Param("xiangmuid") String xiangmuid);

    Integer countNumber(@Param("xiangmuid") String xiangmuid);

    List<Map<String, Object>> findShengchanqiyeByPingui(@Param("xiangmuid") String ppxiangmuId,@Param("xuhao") String mmPinguiOne);
    List<Map<String, Object>> findqianzibiaoResult(@Param("xiangmuid") String ppxiangmuId,@Param("xuhao") String mmPinguiOne,@Param("userid")String userid);
    List<Map<String, Object>> findqianzibiao(@Param("xiangmuid") String ppxiangmuId,@Param("xuhao") String mmPinguiOne);
}